From 18e77400685b90f17f96480fc71540aa2cdfa2a3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 31 Aug 2009 18:17:26 +0100 Subject: [PATCH] xend: Fix c/s 20137 -- do not redefine built-in name 'str'. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index f5c9bdac94..32496041d1 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2411,10 +2411,10 @@ class XendDomainInfo: log.exception(e) if not self.domid or self.domid < 0: - str = 'Creating domain failed: name=%s' % self.info['name_label'] + failmsg = 'Creating domain failed: name=%s' % self.info['name_label'] if self.domid: - str += ', error=%i' % int(self.domid) - raise VmError(str) + failmsg += ', error=%i' % int(self.domid) + raise VmError(failmsg) self.dompath = GetDomainPath(self.domid) -- 2.30.2